﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    public class Library
    {
        public static List<string> getFromDir(string path, string type)
        {
            List<string> Files;
            Files = new List<string>(Directory.GetFiles(path).ToList());
            IEnumerable<string> query = Files.Where(str => str.Contains(type));
            return (query.ToList());
        }
    }
}
